package com.qidianit.mes.pro.controller;

import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.SysUser;
import com.qidianit.mes.pro.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ Description:
 * @ Author:WuJingLei
 * @ Date: 2025/10/3 -9:42
 */
@RestController
@RequestMapping("/sysUser")
public class SysUserController {
    @Autowired
    private SysUserService userService;

    @GetMapping("/get/{id}")
    public Result<SysUser> getUserById(@PathVariable Long id){
        return userService.queryById(id);
    }
}
